Skip to content

NET_SDK_EditFTPCfg

Interface Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
BOOL NET_SDK_EditFTPCfg(
    LONG lUserID,
    BOOL bSwitch,
    const char* serverAddr,
    int port,
    const char* userName,
    const char* password,
    BOOL anonymousSwitch,
    int maxSize,
    const char* path,
    BOOL disNetUpLoad,
    int channelNum,
    NET_SDK_FTP_STREAM_TYPE streamType,
    BOOL motion,
    BOOL inteligence,
    BOOL sensor,
    BOOL ftpSnapSwitch,
    BOOL ftpAlarmInfoSwitch);
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
public static extern Boolean NET_SDK_EditFTPCfg(
    Int32 lUserID,
    Boolean bSwitch,
    string serverAddr,
    Int32 port,
    string userName,
    string password,
    Boolean anonymousSwitch,
    Int32 maxSize,
    string path,
    Boolean disNetUpLoad,
    Int32 channelNum,
    NET_SDK_FTP_STREAM_TYPE streamType,
    Boolean motion,
    Boolean inteligence,
    Boolean sensor,
    Boolean ftpSnapSwitch,
    Boolean ftpAlarmInfoSwitch);

Function Description

FTP configuration interface, set the device FTP upload parameters and the FTP recording/capture/alarm switch of the specified channel.

Parameter Description

Parameters Type Remark
lUserIDin LONG User ID, return value of NET_SDK_Login.
bSwitchin BOOL FTP switch (TRUE: on, FALSE: off).
serverAddrin char* FTP server address.
portin int FTP port.
userNamein char* FTP username.
passwordin char* FTP password (clear text, internal MD5 encryption).
anonymousSwitchin BOOL Anonymous login switch (TRUE: anonymous, FALSE: non-anonymous).
maxSizein int Maximum file size (range 0-4096).
pathin char* FTP upload path.
disNetUpLoadin BOOL Resume transmission switch after network disconnection (TRUE: on, FALSE: off).
channelNumin int The channel number to be modified matches the chlNum returned by queryFTPCfg.
streamTypein NET_SDK_FTP_STREAM_TYPE Stream type (0: sub-stream, 1: main stream).
motionin BOOL Motion detection recording switch (TRUE: on, FALSE: off).
inteligencein BOOL Smart recording switch (TRUE: on, FALSE: off).
sensorin BOOL Sensor alarm recording switch (TRUE: on, FALSE: off).
ftpSnapSwitchin BOOL FTP snapshot switch (TRUE: on, FALSE: off).
ftpAlarmInfoSwitchin BOOL FTP alarm information switch (TRUE: on, FALSE: off).

Return Value

  • Type:BOOL

  • Remark:Returns TRUE if successful, FALSE if failed.

Remarks

None

Error Code